﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ProjectCloth.WpfUI
{
    /// <summary>
    /// Interaction logic for DataGrid.xaml
    /// </summary>
    public partial class DataGrider : Window
    {
        public DataGrider()
        {
            InitializeComponent();
            var equipAlarms= new  List<StationModel>();
            equipAlarms.Add(new StationModel()
            {
                KeyID = "12",
                Name = "l3433ucy",
                PYString = "l3y",
                ShortPYString = "1lu"
            });
            equipAlarms.Add(new StationModel()
            {
                KeyID = "25",
                Name = "lucy222",
                PYString = "ly45",
                ShortPYString = "lu"
            });
            equipAlarms.Add(new StationModel()
            {
                KeyID = "2",
                Name = "lucy",
                PYString = "ly",
                ShortPYString = "lu"
            });
            List<string> list = new List<string> { "aa", "bb", "abc", "csd", "sdlfks", "osdi", "awd" };
            dataGrid1.ItemsSource = equipAlarms;   //数据绑定
            comboBox1.ItemsSource = list;
            //combobox2.ItemsSource = list;

            //comboBox1.DisplayMemberPath = "Name";
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //DataSet ds = new DataSet();
            //ds = SqlHelper.GetInfo();
            //List<EquipAlarm> equipAlarms = Tool_ViewModel.GetEquipAlarms(ds);
           

        }
          private void WorkBtn_Click(object sender, RoutedEventArgs e)
        {


        }
    }
}
